import fetch, { BaseResponse, RequestContentType } from './index'
import { ReportParam, ReportData } from '@/types/report'
/**
 * 查询报告详情
 * @param param Partial<AddressParam>
 * @returns BaseResponse<any>
 */
export async function reportDetail(param: Partial<ReportParam>): Promise<BaseResponse<ReportData>> {
  const { data } = await fetch.post<BaseResponse<ReportData>>(
    '/report/detail',
    {
      ...param,
    },
    { contentType: RequestContentType.FORM_URLENCODED },
  )
  return data
}
